package com.youle.robots.gateway.api;

import lombok.Data;
import org.springframework.http.HttpStatus;

/**
 * 自定义拦截器异常
 * Created by IntelliJ IDEA.
 * User: kedong
 * Date: 18-3-29
 * Time: 下午2:42
 * To change this template use File | Settings | File and Code Templates ->Includes->File Header.
 */
@Data
public class InterceptorExcption extends Exception {
    private static final long serialVersionUID = -2934129767229422210L;


    private String msg;
    private HttpStatus httpStatus;

    public InterceptorExcption(String msg, HttpStatus httpStatus) {
        this.msg = msg;
        this.httpStatus = httpStatus;
    }

}
